﻿using System;

namespace b3
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] n = new int[101];
            for (int i = 2; i < 100; i++)
                n[i] = i;
            for (int i = 2; i <= 10; i++)
            {
                for (int j = 1; i * j <= 100; j++)
                {
                    n[i * j] = 0;
                }
            }
            Console.WriteLine("2-100之间的素数有:");
            for (int i = 0; i < 100; i++)
            {
                if (n[i] != 0)
                {
                    Console.WriteLine(n[i]);
                }

            }
        }
    }
}
